package cn.yougou.controller;


import cn.yougou.common.DtoUtil;
import cn.yougou.dto.Dto;
import cn.yougou.pojo.YgSlideshow;
import cn.yougou.service.shopcart.YgSlideshowService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.*;

/**
 * @auth 韩帅锋
 * @date 2021/1/8 11:52
 */
@RestController
@RequestMapping("shopSlideshow")
public class YgSlideshowController{
    @Reference
    private YgSlideshowService ygSlideshowService;

    @PostMapping("slideshow")
    public Dto slideshow(@RequestBody YgSlideshow ygSlideshow){
        return DtoUtil.returnDataSuccess(ygSlideshowService.queryAll(ygSlideshow));
    }

}
